﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QlpmClient.Utils
{

    class ultils
    {

        public string Get_Day(DateTime time)
        {
            string str = time.ToString("dd MM yyyy").Trim();
            str = str.Substring(0, 2);
            return str;
        }
        public string Get_Month(DateTime time)
        {
            string str = time.ToString("dd MM yyyy").Trim();
            str = str.Substring(3, 2);
            return str;
        }
        public string Get_Year(DateTime time)
        {
            string str = time.ToString("dd MM yyyy").Trim();
            str = str.Substring(6, 4);
            return str;
        }
        public string SplitDay(string date)
        {
            string str = date.Substring(0,2);
            return str;
        }
        public string SplitMonth(string date)
        {
            string str = date.Substring(3, 2);
            return str;
        }
        public string SplitYear(string date)
        {
            string str = date.Substring(6, 4);
            return str;
        }
    }
}
